//vuejs通过@vue/cli搭建的项目的配置
module.exports = {
  devServer: {
    proxy: {
      '/user': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/campuses': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/departments': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/doctors': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      // '/schedules': {
      //   target: 'http://localhost:8083',
      //   changeOrigin: true,
      // },
      '/api': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/serviceTypes': {
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/doctorServices': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/schedules': { // 重点加上这一段
        target: 'http://localhost:8083',
        changeOrigin: true,
      },
      '/pharmacies': {
        target: 'http://localhost:8083',
        changeOrigin: true,
        pathRewrite: { '^/pharmacies': '/pharmacies' }
      },
      '/appointments': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/consultations': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/assess': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/prescriptions': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/departmentPharmacyConfig': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/medicines': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/medicineCategories': {
        target: 'http://localhost:8083',
        changeOrigin: true
      },
      '/notices': {
        target: 'http://localhost:8083',
        changeOrigin: true
      }
      // ...其他代理
    }
  }
}